﻿using System;

namespace PrimitiveTypes
{
    class Program
    {
        static void Main(string[] args)
        {
            bool isValid = true;
            bool isInvalid = false;

            Console.WriteLine("bool size = " + sizeof(bool));

            bool tmp = Boolean.Parse("True");

            Console.WriteLine("----------------------------");

            Console.WriteLine("byte type = " + typeof(byte));
            Console.WriteLine("byte size = " + sizeof(byte));
            Console.WriteLine("byte min = " + byte.MinValue);
            Console.WriteLine("byte max = " + byte.MaxValue);

            Console.WriteLine("----------------------------");

            Console.WriteLine("sbyte type = " + typeof(sbyte));
            Console.WriteLine("sbyte size = " + sizeof(sbyte));
            Console.WriteLine("sbyte min = " + sbyte.MinValue);
            Console.WriteLine("sbyte max = " + sbyte.MaxValue);

            Console.WriteLine("----------------------------");

            int a = 15;
            uint b = 4294967295U;
            long g = 10L;
            ulong c = 18446744073709551615UL;

            float x = 1.5F;
            double y = 2.5;
            x = (float)y;

            decimal money = 1000000M;

            char ch = (char)65;
            string s = "Hello C#";

            Console.WriteLine((int)'a');
            Console.WriteLine((int)'A');

            Console.ReadKey();
        }
    }
}
